package com.base.myproject.server.jbpm.jbpmEventListener;

import org.jbpm.api.listener.EventListener;
import org.jbpm.api.listener.EventListenerExecution;
import com.base.myproject.server.database.PoolMan;

public class InsertListener implements EventListener {
	private static final long serialVersionUID = 1L;
	
	@Override
	public void notify(EventListenerExecution execution) throws Exception {
		PoolMan pm = new PoolMan();
		try {
			pm.Update("insert vacationDetail(bcode, vacationDay, code) values('0011', getdate(), 'AL')");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
